import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { Provider } from 'react-redux';
import App from './App';
import store from './store/createStore';
// import router from './router/index.js';
import registerServiceWorker from './registerServiceWorker';
import AppRouter from './router';

// console.log(store.getState())
ReactDOM.render(
  <Provider store={store}>
    <AppRouter />
  </Provider>,
  document.getElementById('root')
);
// ReactDOM.render(<router/>, document.getElementById('root'));
registerServiceWorker();
